package com.warrior.respository;

import com.warrior.entity.HomeIntroductionEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by Shawn on 2017/3/20.
 */
@Repository
public interface IHomeIntroductionRepository extends JpaRepository<HomeIntroductionEntity, String>, PagingAndSortingRepository<HomeIntroductionEntity, String> {

    HomeIntroductionEntity findHomeIntroductionById(String id);

    Page<HomeIntroductionEntity> findAll(Pageable pageable);
}
